package model.dao.county;

import java.util.List;

import com.e885.log.E885Logger;
import com.e885.sample.model.bean.County;
import com.e885.sample.model.dao.CountyDAO;

/**
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class TetstFindAllCounty
{
	public TetstFindAllCounty()
	{
		List< County > countyList = new CountyDAO().findAllCounty();
		
		int size = countyList.size();
		
		for( int i = 0 ; i < size ; i++ )
		{
			County county = countyList.get( i );
			
			E885Logger.testLog.debug( "====================================" );
			E885Logger.testLog.debug( "id:" + county.getId() );
			E885Logger.testLog.debug( "id:" + county.getName() );
		}
		
		E885Logger.testLog.debug( "====================================" );
		E885Logger.testLog.debug( "總筆數:" + size );
		E885Logger.testLog.debug( "====================================" );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		new TetstFindAllCounty();
	}

}
